<?php

class NoticeModel extends Model
{
    public function count()
    {
        $sql = "SELECT COUNT(noticeid) AS t FROM __TABLE__";
        $ret = $this->query($sql);
        return $ret['t'];
    }
}

?>